package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Company;
import cn.sumpu.app.coolsk.exception.AppBusinessException;

public interface CompanyDao {
	
	public void updateCompany(Company company)throws AppBusinessException;
	
	public List<Company> getCompany(Map<String,Object> map)throws AppBusinessException;
	
	public int getCompanyCount(Map<String,Object> map)throws AppBusinessException;
	
	public void delCompany(Map<String,Object> map)throws AppBusinessException;
	
	public void insertCompany(Company company)throws AppBusinessException;
	
	/**
	 * author BruceZhang
	 * @param name	公司名称
	 * @return	联想公司名称
	 * @throws AppBusinessException
	 */
	List<Company> getCompanyByName(Map<String,Object> map)throws AppBusinessException;
	
}
